gem5  v20.1.0.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sc_dt::scfx_string Class Reference

#include <scfx_string.hh>

Public Member Functions

 scfx_string ()
 
 ~scfx_string ()
 
int length () const
 
void clear ()
 
char & operator[] (int)
 
void append (int)
 
void discard (int)
 
void remove (int)
 
void operator+= (char)
 
void operator+= (const char *)
 
 operator const char * ()
 

Private Member Functions

void resize (std::size_t)
 

Private Attributes

std::size_t m_len
 
std::size_t m_alloc
 
char * m_buffer
 

Detailed Description

Definition at line 108 of file scfx_string.hh.

Constructor & Destructor Documentation

◆ scfx_string()

sc_dt::scfx_string::scfx_string ( )
inline

Definition at line 159 of file scfx_string.hh.

References m_buffer, m_len, and ArmISA::n.

◆ ~scfx_string()

sc_dt::scfx_string::~scfx_string ( )
inline

Definition at line 165 of file scfx_string.hh.

Member Function Documentation

◆ append()

void sc_dt::scfx_string::append ( int  n)
inline

Definition at line 186 of file scfx_string.hh.

References ArmISA::s.

◆ clear()

void sc_dt::scfx_string::clear ( )
inline

Definition at line 170 of file scfx_string.hh.

◆ discard()

void sc_dt::scfx_string::discard ( int  n)
inline

Definition at line 193 of file scfx_string.hh.

◆ length()

int sc_dt::scfx_string::length ( ) const
inline

Definition at line 167 of file scfx_string.hh.

◆ operator const char *()

sc_dt::scfx_string::operator const char * ( )
inline

Definition at line 223 of file scfx_string.hh.

◆ operator+=() [1/2]

void sc_dt::scfx_string::operator+= ( char  c)
inline

Definition at line 209 of file scfx_string.hh.

◆ operator+=() [2/2]

void sc_dt::scfx_string::operator+= ( const char *  s)
inline

Definition at line 217 of file scfx_string.hh.

◆ operator[]()

char & sc_dt::scfx_string::operator[] ( int  i)
inline

Definition at line 177 of file scfx_string.hh.

References ArmISA::c, and m_len.

◆ remove()

void sc_dt::scfx_string::remove ( int  i)
inline

Definition at line 200 of file scfx_string.hh.

◆ resize()

void sc_dt::scfx_string::resize ( std::size_t  i)
inlineprivate

Definition at line 142 of file scfx_string.hh.

Member Data Documentation

◆ m_alloc

std::size_t sc_dt::scfx_string::m_alloc
private

Definition at line 134 of file scfx_string.hh.

◆ m_buffer

char* sc_dt::scfx_string::m_buffer
private

Definition at line 135 of file scfx_string.hh.

Referenced by scfx_string().

◆ m_len

std::size_t sc_dt::scfx_string::m_len
private

Definition at line 133 of file scfx_string.hh.

Referenced by operator[](), and scfx_string().


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

Generated on Wed Sep 30 2020 14:03:10 for gem5 by doxygen 1.8.17