Realm C++ SDK Version v2.2.0
Public Types | Public Member Functions | Friends | List of all members

realm::managed< std::string > Struct Reference

Inheritance diagram for realm::managed< std::string >:
realm::managed_base realm::managed< std::optional< std::string > >

Public Types

using value_type = std::string
 
using reference = char_reference
 
using const_reference = const_char_reference
 

Public Member Functions

std::string detach () const
 
managedoperator= (std::string &&v)
 
managedoperator= (const std::string &v)
 
managedoperator= (const char *v)
 
reference at (size_t idx)
 accesses the specified character with bounds checking
 
reference operator[] (size_t idx)
 accesses the specified character
 
const_reference front () const
 accesses the first character
 
reference front ()
 
const_reference back () const
 accesses the last character
 
reference back ()
 
char_pointer data ()
 returns a pointer to the first character of a string
 
const_char_pointer data () const
 
const_char_pointer c_str () const
 returns a non-modifiable standard C character array version of the string
 
 operator std::string_view () const =delete
 returns a non-modifiable string_view into the entire string
 
 operator std::string () const
 
size_t size () const noexcept
 
void clear () noexcept
 
void push_back (char c)
 
managedappend (const std::string &)
 appends additional characters to the string
 
managedoperator+= (const std::string &)
 appends additional characters to the string
 
void pop_back ()
 removes the last character from the string.
 
rbool operator== (const std::string &rhs) const noexcept
 
rbool operator== (const char *rhs) const noexcept
 
rbool operator!= (const std::string &rhs) const noexcept
 
rbool operator!= (const char *rhs) const noexcept
 
rbool contains (const std::string &s, bool case_sensitive=true) const noexcept
 
rbool empty () const noexcept
 
 managed_base ()=default
 
 managed_base (const managed_base &other)
 
 managed_base (managed_base &&other)
 
managed_baseoperator= (const managed_base &other)
 
managed_baseoperator= (managed_base &&other)
 
template<typename T >
managed_baseoperator= (const T &v)
 
- Public Member Functions inherited from realm::managed_base
void assign (internal::bridge::obj *obj, internal::bridge::realm *realm, internal::bridge::col_key &&key)
 
void assign (internal::bridge::obj *obj, internal::bridge::realm *realm, const internal::bridge::col_key &key)
 
template<typename T >
managed_baseoperator= (const T &v)
 
void prepare_for_query (internal::bridge::realm *realm, const internal::bridge::table &table, const std::string_view &col_name, realm::rbool *query_builder)
 

Friends

struct char_reference
 
struct const_char_reference
 

Additional Inherited Members

- Public Attributes inherited from realm::managed_base
internal::bridge::objm_obj = nullptr
 
internal::bridge::realmm_realm = nullptr
 
internal::bridge::col_key m_key
 
rboolm_rbool_query = nullptr
 
- Static Public Attributes inherited from realm::managed_base
static constexpr bool is_object = false
 
- Protected Member Functions inherited from realm::managed_base
 managed_base (const managed_base &other)
 
managed_baseoperator= (const managed_base &other)
 
 managed_base (managed_base &&other)
 
managed_baseoperator= (managed_base &&other)
 

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