stencet  v0.1.16
Build C++ web server modules that allow easy routing and deployment.
stencet::ViewModel Struct Reference
Inheritance diagram for stencet::ViewModel:
stencet::Variant stencet::ViewBase_< T > stencet::ViewContext stencet::ViewModel_< T > stencet::ViewBase_< bool > stencet::ViewBase_< double > stencet::ViewBase_< int > stencet::ViewBase_< std::string >

Public Types

enum  Type {
  Null = -1, Object = 0, List = 1, String = 2,
  Double = 3, Int = 4, Bool = 5
}
 

Public Member Functions

virtual bool isConvertible (Type t) const
 
virtual Type getType () const
 
virtual void asString (std::string &str) const
 
virtual double asDouble () const
 
virtual bool asBool () const
 
virtual int asInt () const
 
virtual size_t size () const
 
virtual bool hasValue (const std::string &name)
 
virtual ViewModelat (size_t)
 
virtual ViewModelat (const std::string &name)
 

Public Attributes

bool managed = true
 

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