Cppcheck
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Library::Container Class Reference

#include <library.h>

Classes

struct  Function
 
struct  RangeItemRecordTypeItem
 

Public Types

enum class  Action {
  RESIZE , CLEAR , PUSH , POP ,
  FIND , FIND_CONST , INSERT , ERASE ,
  CHANGE_CONTENT , CHANGE , CHANGE_INTERNAL , NO_ACTION
}
 
enum class  Yield {
  AT_INDEX , ITEM , BUFFER , BUFFER_NT ,
  START_ITERATOR , END_ITERATOR , ITERATOR , SIZE ,
  EMPTY , NO_YIELD
}
 

Public Member Functions

 Container ()=default
 
Action getAction (const std::string &function) const
 
Yield getYield (const std::string &function) const
 
const std::string & getReturnType (const std::string &function) const
 

Static Public Member Functions

static Yield yieldFrom (const std::string &yieldName)
 
static Action actionFrom (const std::string &actionName)
 

Public Attributes

std::string startPattern
 
std::string startPattern2
 
std::string endPattern
 
std::string itEndPattern
 
std::map< std::string, Functionfunctions
 
int type_templateArgNo = -1
 
std::vector< RangeItemRecordTypeItemrangeItemRecordType
 
int size_templateArgNo = -1
 
bool arrayLike_indexOp {}
 
bool stdStringLike {}
 
bool stdAssociativeLike {}
 
bool opLessAllowed = true
 
bool hasInitializerListConstructor {}
 
bool unstableErase {}
 
bool unstableInsert {}
 
bool view {}
 

Detailed Description

Definition at line 195 of file library.h.

Member Enumeration Documentation

◆ Action

Enumerator
RESIZE 
CLEAR 
PUSH 
POP 
FIND 
FIND_CONST 
INSERT 
ERASE 
CHANGE_CONTENT 
CHANGE 
CHANGE_INTERNAL 
NO_ACTION 

Definition at line 199 of file library.h.

◆ Yield

Enumerator
AT_INDEX 
ITEM 
BUFFER 
BUFFER_NT 
START_ITERATOR 
END_ITERATOR 
ITERATOR 
SIZE 
EMPTY 
NO_YIELD 

Definition at line 213 of file library.h.

Constructor & Destructor Documentation

◆ Container()

Library::Container::Container ( )
default

Member Function Documentation

◆ actionFrom()

Library::Container::Action Library::Container::actionFrom ( const std::string &  actionName)
static

◆ getAction()

Action Library::Container::getAction ( const std::string &  function) const
inline

◆ getReturnType()

const std::string& Library::Container::getReturnType ( const std::string &  function) const
inline

Definition at line 262 of file library.h.

References emptyString.

Referenced by Library::returnValueType().

◆ getYield()

Yield Library::Container::getYield ( const std::string &  function) const
inline

◆ yieldFrom()

Library::Container::Yield Library::Container::yieldFrom ( const std::string &  yieldName)
static

Definition at line 144 of file library.cpp.

References AT_INDEX, BUFFER, BUFFER_NT, EMPTY, END_ITERATOR, ITEM, ITERATOR, NO_YIELD, SIZE, and START_ITERATOR.

Referenced by Library::load(), and Library::loadFunction().

Member Data Documentation

◆ arrayLike_indexOp

bool Library::Container::arrayLike_indexOp {}

◆ endPattern

std::string Library::Container::endPattern

Definition at line 234 of file library.h.

Referenced by Library::detectContainerInternal(), and Library::load().

◆ functions

std::map<std::string, Function> Library::Container::functions

◆ hasInitializerListConstructor

bool Library::Container::hasInitializerListConstructor {}

Definition at line 243 of file library.h.

Referenced by Library::load().

◆ itEndPattern

std::string Library::Container::itEndPattern

Definition at line 234 of file library.h.

Referenced by Library::detectContainerInternal(), and Library::load().

◆ opLessAllowed

bool Library::Container::opLessAllowed = true

Definition at line 242 of file library.h.

Referenced by Library::load(), and CheckStl::stlBoundaries().

◆ rangeItemRecordType

std::vector<RangeItemRecordTypeItem> Library::Container::rangeItemRecordType

Definition at line 237 of file library.h.

Referenced by Library::load(), and SymbolDatabase::setValueType().

◆ size_templateArgNo

int Library::Container::size_templateArgNo = -1

Definition at line 238 of file library.h.

Referenced by Variable::arrayDimensions(), Library::load(), and valueFlowContainerSize().

◆ startPattern

std::string Library::Container::startPattern

Definition at line 234 of file library.h.

Referenced by Library::detectContainerInternal(), Library::load(), and ValueType::str().

◆ startPattern2

std::string Library::Container::startPattern2

Definition at line 234 of file library.h.

Referenced by Library::detectContainerInternal(), and Library::load().

◆ stdAssociativeLike

bool Library::Container::stdAssociativeLike {}

◆ stdStringLike

bool Library::Container::stdStringLike {}

◆ type_templateArgNo

int Library::Container::type_templateArgNo = -1

Definition at line 236 of file library.h.

Referenced by CheckStl::if_find(), and Library::load().

◆ unstableErase

bool Library::Container::unstableErase {}

Definition at line 244 of file library.h.

Referenced by Library::load().

◆ unstableInsert

bool Library::Container::unstableInsert {}

Definition at line 245 of file library.h.

Referenced by Library::load().

◆ view

bool Library::Container::view {}

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