OpenSDN source code
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
t_const.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
20
#ifndef T_CONST_H
21
#define T_CONST_H
22
23
#include "
t_type.h
"
24
#include "
t_const_value.h
"
25
33
class
t_const
:
public
t_doc
{
34
public
:
35
t_const
(
t_type
*
type
, std::string name,
t_const_value
* value) :
36
type_
(type),
37
name_
(name),
38
value_
(value) {}
39
40
t_type
*
get_type
()
const
{
41
return
type_
;
42
}
43
44
std::string
get_name
()
const
{
45
return
name_
;
46
}
47
48
t_const_value
*
get_value
()
const
{
49
return
value_
;
50
}
51
52
private
:
53
t_type
*
type_
;
54
std::string
name_
;
55
t_const_value
*
value_
;
56
};
57
58
#endif
59
t_const::name_
std::string name_
Definition:
t_const.h:54
t_type
Definition:
t_type.h:48
t_const::type_
t_type * type_
Definition:
t_const.h:53
t_const
Definition:
t_const.h:33
t_const::t_const
t_const(t_type *type, std::string name, t_const_value *value)
Definition:
t_const.h:35
t_const::get_type
t_type * get_type() const
Definition:
t_const.h:40
type
uint8_t type
Definition:
load_balance.h:109
t_doc
Definition:
t_doc.h:27
t_const::get_name
std::string get_name() const
Definition:
t_const.h:44
t_const::value_
t_const_value * value_
Definition:
t_const.h:55
t_const::get_value
t_const_value * get_value() const
Definition:
t_const.h:48
t_const_value
Definition:
t_const_value.h:36
t_const_value.h
t_type.h
contrail
src
contrail-common
sandesh
compiler
parse
t_const.h
Generated by
1.8.5