OpenSDN source code
t_container.h
Go to the documentation of this file.
1
/*
2
* Licensed to the Apache Software Foundation (ASF) under one
3
* or more contributor license agreements. See the NOTICE file
4
* distributed with this work for additional information
5
* regarding copyright ownership. The ASF licenses this file
6
* to you under the Apache License, Version 2.0 (the
7
* "License"); you may not use this file except in compliance
8
* with the License. You may obtain a copy of the License at
9
*
10
* http://www.apache.org/licenses/LICENSE-2.0
11
*
12
* Unless required by applicable law or agreed to in writing,
13
* software distributed under the License is distributed on an
14
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
* KIND, either express or implied. See the License for the
16
* specific language governing permissions and limitations
17
* under the License.
18
*
19
* Modifications Copyright (c) Juniper Networks, Inc.
20
* Copyright Contributors to the OpenSDN project
21
*/
22
23
#ifndef T_CONTAINER_H
24
#define T_CONTAINER_H
25
26
#include "
t_type.h
"
27
28
class
t_container
:
public
t_type
{
29
public
:
30
t_container
() :
31
cpp_name_
(),
32
has_cpp_name_
(false) {}
33
34
virtual
~t_container
() {}
35
36
void
set_cpp_name
(std::string cpp_name) {
37
cpp_name_
= cpp_name;
38
has_cpp_name_
=
true
;
39
}
40
41
bool
has_cpp_name
() {
42
return
has_cpp_name_
;
43
}
44
45
std::string
get_cpp_name
() {
46
return
cpp_name_
;
47
}
48
49
bool
is_container
()
const
{
50
return
true
;
51
}
52
53
private
:
54
std::string
cpp_name_
;
55
bool
has_cpp_name_
;
56
57
};
58
59
#endif
t_container
Definition:
t_container.h:28
t_container::has_cpp_name
bool has_cpp_name()
Definition:
t_container.h:41
t_container::is_container
bool is_container() const
Definition:
t_container.h:49
t_container::cpp_name_
std::string cpp_name_
Definition:
t_container.h:54
t_container::~t_container
virtual ~t_container()
Definition:
t_container.h:34
t_container::set_cpp_name
void set_cpp_name(std::string cpp_name)
Definition:
t_container.h:36
t_container::t_container
t_container()
Definition:
t_container.h:30
t_container::get_cpp_name
std::string get_cpp_name()
Definition:
t_container.h:45
t_container::has_cpp_name_
bool has_cpp_name_
Definition:
t_container.h:55
t_type
Definition:
t_type.h:51
t_type.h
contrail
src
contrail-common
sandesh
compiler
parse
t_container.h
Generated by
1.9.1