Module StructLikeClass

Import path

semmle.code.cpp.commons.StructLikeClass

Imports

Predicates

getter

Holds if f is a getter member function for v, in class c. See StructLikeClass.getAGetter.

sameBaseType

Holds if t1 and t2 are the same type up to typedefs, specifiers, and removing a single layer of pointers or references (but not arrays). Equates, for example, const int* with int, but not int** with int or int[] with int.

setter

Holds if f is a setter member function for v, in class c. See StructLikeClass.getASetter.

Classes

StructLikeClass

A class that is either a struct or just has getters and setters for its members. In either case it just stores data and has no real encapsulation.