OmniSciDB  ba1bac9284
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Restriction Struct Reference

#include <Restriction.h>

+ Collaboration diagram for Restriction:

Public Member Functions

 Restriction ()
 
 Restriction (const std::string &c, const std::vector< std::string > v)
 

Public Attributes

std::string column
 
std::vector< std::string > values
 

Friends

std::ostream & operator<< (std::ostream &out, const Restriction &restriction)
 

Detailed Description

Definition at line 31 of file Restriction.h.

Constructor & Destructor Documentation

Restriction::Restriction ( )
inline

Definition at line 35 of file Restriction.h.

35 {};
Restriction::Restriction ( const std::string &  c,
const std::vector< std::string >  v 
)
inline

Definition at line 37 of file Restriction.h.

References column, and values.

37  {
38  column = c;
39  values = v;
40  };
std::string column
Definition: Restriction.h:32
std::vector< std::string > values
Definition: Restriction.h:33

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const Restriction restriction 
)
friend

Definition at line 42 of file Restriction.h.

42  {
43  out << "Restriction(" << restriction.column << " ["
44  << boost::algorithm::join(restriction.values, ",") << "])";
45  return out;
46  }
std::string column
Definition: Restriction.h:32
std::string join(T const &container, std::string const &delim)
std::vector< std::string > values
Definition: Restriction.h:33

Member Data Documentation

std::string Restriction::column

Definition at line 32 of file Restriction.h.

Referenced by Restriction().

std::vector<std::string> Restriction::values

Definition at line 33 of file Restriction.h.

Referenced by Restriction().


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