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

Public Types

enum class  Type {
  String , SignedIntegral , UnsignedIntegral , Floating ,
  Nullptr , Boolean , Character
}
 

Public Member Functions

template<HasStringMethod T>
 Printable (const T &value)
 
template<HasCStringMethod T>
 Printable (const T &value)
 
 Printable (const std::string &str)
 
 Printable (std::string_view str)
 
 Printable (const char *str)
 
 Printable (uint8_t value)
 
 Printable (uint16_t value)
 
 Printable (uint32_t value)
 
 Printable (uint64_t value)
 
 Printable (int8_t value)
 
 Printable (int16_t value)
 
 Printable (int32_t value)
 
 Printable (int64_t value)
 
 Printable (std::float32_t value)
 
 Printable (std::float64_t value)
 
 Printable (std::nullptr_t value)
 
 Printable (bool value)
 
 Printable (char value)
 
 Printable (const void *value)
 
 Printable (const Printable &other)
 
 Printable (Printable &&other)
 
Printableoperator= (const Printable &other)
 
Printableoperator= (Printable &&other)
 
const Type & getType () const
 
const std::string & getString () const
 
std::string floatingToString (size_t precision) const
 
std::string signedToString () const
 
std::string unsignedToString () const
 
std::string nullptrToString () const
 
std::string booleanToString (bool lexical_bool) const
 
std::string characterToString () const
 

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