linc 0.7
Linc is a general-purpose programming language inspired by C
Loading...
Searching...
No Matches
linc::Value Class Referencefinal

Public Types

enum class  Kind : char {
  Invalid , Primitive , Array , Structure ,
  Enumerator
}
 

Public Member Functions

 Value (const PrimitiveValue &value)
 
 Value (const ArrayValue &value)
 
 Value (const EnumeratorValue &value)
 
 Value (const std::vector< Value > &value)
 
 Value (const Value &other)
 
Valueoperator= (const Value &other)
 
 Value (Value &&other)
 
Valueoperator= (Value &&other)
 
Value operator+ (const Value &other) const
 
const PrimitiveValuegetPrimitive () const
 
const ArrayValuegetArray () const
 
const std::vector< Value > & getStructure () const
 
PrimitiveValuegetPrimitive ()
 
ArrayValuegetArray ()
 
std::vector< Value > & getStructure ()
 
EnumeratorValuegetEnumerator ()
 
std::optional< PrimitiveValuegetIfPrimitive () const
 
std::optional< ArrayValuegetIfArray () const
 
std::optional< std::vector< Value > > getIfStructure () const
 
std::optional< EnumeratorValuegetIfEnumerator () const
 
std::string toApplicationString () const
 
std::string toString () const
 

Static Public Member Functions

static Value fromDefault (const Types::type &type)
 

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