OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Parser::ValuesList Class Reference

#include <ParserNode.h>

+ Inheritance diagram for Parser::ValuesList:
+ Collaboration diagram for Parser::ValuesList:

Public Member Functions

 ValuesList ()=default
 
 ValuesList (std::list< Expr * > *values)
 
void push_back (Expr *value)
 
const std::list
< std::unique_ptr< Expr > > & 
get_value_list () const
 
- Public Member Functions inherited from Parser::Node
virtual ~Node ()
 

Private Attributes

std::list< std::unique_ptr
< Expr > > 
value_list
 

Detailed Description

Definition at line 2096 of file ParserNode.h.

Constructor & Destructor Documentation

Parser::ValuesList::ValuesList ( )
default
Parser::ValuesList::ValuesList ( std::list< Expr * > *  values)
inline

Definition at line 2099 of file ParserNode.h.

References CHECK, and value_list.

2099  {
2100  CHECK(values);
2101  for (const auto v : *values) {
2102  value_list.emplace_back(v);
2103  }
2104  delete values;
2105  }
#define CHECK(condition)
Definition: Logger.h:291
std::list< std::unique_ptr< Expr > > value_list
Definition: ParserNode.h:2112

Member Function Documentation

const std::list<std::unique_ptr<Expr> >& Parser::ValuesList::get_value_list ( ) const
inline

Definition at line 2109 of file ParserNode.h.

References value_list.

2109 { return value_list; }
std::list< std::unique_ptr< Expr > > value_list
Definition: ParserNode.h:2112
void Parser::ValuesList::push_back ( Expr value)
inline

Definition at line 2107 of file ParserNode.h.

References value_list.

2107 { value_list.emplace_back(value); }
std::list< std::unique_ptr< Expr > > value_list
Definition: ParserNode.h:2112

Member Data Documentation

std::list<std::unique_ptr<Expr> > Parser::ValuesList::value_list
private

Definition at line 2112 of file ParserNode.h.

Referenced by get_value_list(), push_back(), and ValuesList().


The documentation for this class was generated from the following file: