OmniSciDB  cde582ebc3
 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 2100 of file ParserNode.h.

Constructor & Destructor Documentation

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

Definition at line 2103 of file ParserNode.h.

References CHECK, and value_list.

2103  {
2104  CHECK(values);
2105  for (const auto v : *values) {
2106  value_list.emplace_back(v);
2107  }
2108  delete values;
2109  }
#define CHECK(condition)
Definition: Logger.h:222
std::list< std::unique_ptr< Expr > > value_list
Definition: ParserNode.h:2116

Member Function Documentation

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

Definition at line 2113 of file ParserNode.h.

References value_list.

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

Definition at line 2111 of file ParserNode.h.

References value_list.

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

Member Data Documentation

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

Definition at line 2116 of file ParserNode.h.

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


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