isPureVirtual | R Documentation |
These functions test whether a given C++ method is either constant, i.e., doesn't modify the object's state, or if it is a pure virtual method that must be overriden by one or more subclasses.
isPureVirtual(C)
isConst(C)
C |
a CXCursor representing a C++ method |
A scalar integer value.
Duncan Temple Lang
createTU
f = system.file("exampleCode", "classPure.cc", package = "RCIndex")
tu = createTU(f)
k = getCppClasses(tu)
bar1 = k$Foo@methods[[2]]
isPureVirtual(bar1)
isConst(bar1)
sapply(k$Foo@methods, isConst)
sapply(k$Foo@methods, isPureVirtual)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.