SPT JSON API  1.0.0
Developed by Sans Pareil Technologies, Inc. (SPT)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
spt::json::Boolean Class Reference

Represents the JSON true and false values. More...

#include <Boolean.h>

+ Inheritance diagram for spt::json::Boolean:
+ Collaboration diagram for spt::json::Boolean:

Public Member Functions

 Boolean (bool val)
 
 Boolean (Boolean &&rhs)
 Move CTOR. More...
 
Booleanoperator= (Boolean &&rhs)
 Move assignment operator. More...
 
bool get () const
 
Booleanset (bool val)
 
- Public Member Functions inherited from spt::json::Value
virtual ~Value ()
 Virtual DTOR for sub-classes. More...
 
 Value (Value &&rhs)
 Move CTOR. More...
 
Valueoperator= (Value &&rhs)
 Move assignment operator. More...
 
 Value (const Value &)=delete
 Copy CTOR. Deleted. More...
 
Valueoperator= (Value &)=delete
 Copy assignment operator deleted. More...
 
Type getType () const
 Return the type of data that is represented by this instance. More...
 

Additional Inherited Members

- Public Types inherited from spt::json::Value
enum  Type : int8_t {
  Type::String, Type::Number, Type::Object, Type::Array,
  Type::Boolean, Type::Null
}
 Enumeration of JSON data types. More...
 
typedef std::unique_ptr< ValuePtr
 Unique pointer that holds a value instance. More...
 
- Protected Member Functions inherited from spt::json::Value
 Value (Type t)
 CTOR with specified type. More...
 

Detailed Description

Represents the JSON true and false values.

Date
Created 2013/05/02 18:52
Author
Rakesh Vidyadharan
Version
Id
Boolean.h 5653 2014-10-19 22:14:36Z rakesh

Constructor & Destructor Documentation

spt::json::Boolean::Boolean ( bool  val)
inline
Parameters
valCreate a new instance that represents the specified value.
spt::json::Boolean::Boolean ( Boolean &&  rhs)
inline

Move CTOR.

Member Function Documentation

bool spt::json::Boolean::get ( ) const
inline
Returns
Returns the bool stored in this instance.
Boolean& spt::json::Boolean::operator= ( Boolean &&  rhs)
inline

Move assignment operator.

Boolean& spt::json::Boolean::set ( bool  val)
inline
Parameters
valSet this instance to the specified value.

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