Search some code: Max results:

Found 10502 results in 375 files (60MB index data, 17936079 ngram matches, 711 docs considered, 427 docs (16MB) loaded, 77 docs skipped): for
(and substr:"class" case_substr:"Needle") with options &zoekt.SearchOptions{EstimateDocCount:false, Whole:false, ShardMaxMatchCount:250, TotalMaxMatchCount:1000000, ShardMaxImportantMatch:2, TotalMaxImportantMatch:100, MaxWallTime:10000000000}
in 4.814649476s (queued: 3.055┬Ás)

android.googlesource.com/platform/superproject:external/clang/lib/Sema/AnalysisBasedWarnings.cpp:[master, ] lang:c++

591:   const DeclRefExpr *Needle;
62:   class UnreachableCodeHandler : public reachable_code::Callback {
121: class LogicalErrorHandler : public CFGCallback {
179:     // Skip function calls which are qualified with a templated class.
586: /// ContainsReference - A visitor class to search for references to
589: class ContainsReference : public ConstEvaluatedExprVisitor<ContainsReference> {
596:   ContainsReference(ASTContext &Context, const DeclRefExpr *Needle)
597:     : Inherited(Context), FoundReference(false), Needle(Needle) {}
608:     if (E == Needle)
899:   class FallthroughMapper : public RecursiveASTVisitor<FallthroughMapper> {
1360: class UninitValsDiagReporter : public UninitVariablesHandler {
1472: class ThreadSafetyReporter : public clang::threadSafety::ThreadSafetyHandler {
1742: class ConsumedWarningsHandler : public ConsumedWarningsHandlerBase {
259:   // templated classes.
727:     switch (Term ? Term->getStmtClass() : Stmt::DeclStmtClass) {
734:     case Stmt::IfStmtClass: {
744:     case Stmt::ConditionalOperatorClass: {
754:     case Stmt::BinaryOperatorClass: {
774:     case Stmt::WhileStmtClass:
781:     case Stmt::ForStmtClass:
791:     case Stmt::CXXForRangeStmtClass:
804:     case Stmt::DoStmtClass:
813:     case Stmt::CaseStmtClass:
818:     case Stmt::DefaultStmtClass:
1182:     switch (S->getStmtClass()) {
1183:     case Stmt::ForStmtClass:
1184:     case Stmt::WhileStmtClass:
1185:     case Stmt::CXXForRangeStmtClass:
1186:     case Stmt::ObjCForCollectionStmtClass:
1188:     case Stmt::DoStmtClass: {
1277:   // Classify the current code body for better warning text.
1280:   // FIXME: Should we use a common classification enum and the same set of
1315:     // Classify the weak object being accessed for better warning text.
1935:       .setAlwaysAdd(Stmt::BinaryOperatorClass)
1936:       .setAlwaysAdd(Stmt::CompoundAssignOperatorClass)
1937:       .setAlwaysAdd(Stmt::BlockExprClass)
1938:       .setAlwaysAdd(Stmt::CStyleCastExprClass)
1939:       .setAlwaysAdd(Stmt::DeclRefExprClass)
1940:       .setAlwaysAdd(Stmt::ImplicitCastExprClass)
1941:       .setAlwaysAdd(Stmt::UnaryOperatorClass)
1942:       .setAlwaysAdd(Stmt::AttributedStmtClass);
github.com/google/rekall:rekall-gui/manuskript/static/bower_components/markdown/test/fixtures/Markdown-from-MDTest1.1.mdtest/Markdown_Documentation_-_Syntax.json:[master, ] lang:json
15:         "class": "selected",
264:     ["pre", ["code", "    <div class=\"footer\">\u000a        &copy; 2004 Foo Corporation\u000a    </div>\u000a"]],
266:     ["pre", ["code", "<pre><code>&lt;div class=\"footer\"&gt;\u000a    &amp;copy; 2004 Foo Corporation\u000a&lt;/div&gt;\u000a</code></pre>\u000a"]],
149:     ["p", "in your anchor tag ", ["code", "href"], " attribute. Needless to say, this is easy to\u000aforget, and is probably the single most common source of HTML validation\u000aerrors in otherwise well-marked-up web sites."],
github.com/fuchsia-mirror/third_party-cmake:Source/cmTarget.cxx:[master, ] lang:c++
565:   const cmSourceFileLocation& Needle;
581:   const cmSourceFileLocation& Needle;
160: class cmTargetInternals
568:     : Needle(needle)
574:     return loc.Matches(this->Needle);
585:     : Needle(needle)
595:                    CreateLocation(this->Needle.GetMakefile()));
598:                         LocationMatcher(this->Needle)) != locations.end();
android.googlesource.com/platform/external/clang_35a:lib/Sema/AnalysisBasedWarnings.cpp:[master, ] lang:c++
577:   const DeclRefExpr *Needle;
63:   class UnreachableCodeHandler : public reachable_code::Callback {
121: class LogicalErrorHandler : public CFGCallback {
192:         // Skip function calls which are qualified with a templated class.
572: /// ContainsReference - A visitor class to search for references to
575: class ContainsReference : public EvaluatedExprVisitor<ContainsReference> {
580:   ContainsReference(ASTContext &Context, const DeclRefExpr *Needle)
582:       FoundReference(false), Needle(Needle) {}
593:     if (E == Needle)
885:   class FallthroughMapper : public RecursiveASTVisitor<FallthroughMapper> {
1331: class UninitValsDiagReporter : public UninitVariablesHandler {
1454: class ThreadSafetyReporter : public clang::thread_safety::ThreadSafetyHandler {
1629: class ConsumedWarningsHandler : public ConsumedWarningsHandlerBase {
229:   // templated classes.
712:     switch (Term ? Term->getStmtClass() : Stmt::DeclStmtClass) {
719:     case Stmt::IfStmtClass: {
729:     case Stmt::ConditionalOperatorClass: {
739:     case Stmt::BinaryOperatorClass: {
759:     case Stmt::WhileStmtClass:
766:     case Stmt::ForStmtClass:
776:     case Stmt::CXXForRangeStmtClass:
789:     case Stmt::DoStmtClass:
798:     case Stmt::CaseStmtClass:
803:     case Stmt::DefaultStmtClass:
1155:     switch (S->getStmtClass()) {
1156:     case Stmt::ForStmtClass:
1157:     case Stmt::WhileStmtClass:
1158:     case Stmt::CXXForRangeStmtClass:
1159:     case Stmt::ObjCForCollectionStmtClass:
1161:     case Stmt::DoStmtClass: {
1251:   // Classify the current code body for better warning text.
1254:   // FIXME: Should we use a common classification enum and the same set of
1291:     // Classify the weak object being accessed for better warning text.
1831:       .setAlwaysAdd(Stmt::BinaryOperatorClass)
1832:       .setAlwaysAdd(Stmt::CompoundAssignOperatorClass)
1833:       .setAlwaysAdd(Stmt::BlockExprClass)
1834:       .setAlwaysAdd(Stmt::CStyleCastExprClass)
1835:       .setAlwaysAdd(Stmt::DeclRefExprClass)
1836:       .setAlwaysAdd(Stmt::ImplicitCastExprClass)
1837:       .setAlwaysAdd(Stmt::UnaryOperatorClass)
1838:       .setAlwaysAdd(Stmt::AttributedStmtClass);
chromium.googlesource.com/native_client/pnacl-clang:lib/Sema/AnalysisBasedWarnings.cpp:[master, ] lang:c++
579:   const DeclRefExpr *Needle;
63:   class UnreachableCodeHandler : public reachable_code::Callback {
122: class LogicalErrorHandler : public CFGCallback {
203:         // Skip function calls which are qualified with a templated class.
574: /// ContainsReference - A visitor class to search for references to
577: class ContainsReference : public EvaluatedExprVisitor<ContainsReference> {
582:   ContainsReference(ASTContext &Context, const DeclRefExpr *Needle)
584:       FoundReference(false), Needle(Needle) {}
595:     if (E == Needle)
888:   class FallthroughMapper : public RecursiveASTVisitor<FallthroughMapper> {
1325: class UninitValsDiagReporter : public UninitVariablesHandler {
1442: class ThreadSafetyReporter : public clang::threadSafety::ThreadSafetyHandler {
1713: class ConsumedWarningsHandler : public ConsumedWarningsHandlerBase {
240:   // templated classes.
715:     switch (Term ? Term->getStmtClass() : Stmt::DeclStmtClass) {
722:     case Stmt::IfStmtClass: {
732:     case Stmt::ConditionalOperatorClass: {
742:     case Stmt::BinaryOperatorClass: {
762:     case Stmt::WhileStmtClass:
769:     case Stmt::ForStmtClass:
779:     case Stmt::CXXForRangeStmtClass:
792:     case Stmt::DoStmtClass:
801:     case Stmt::CaseStmtClass:
806:     case Stmt::DefaultStmtClass:
1152:     switch (S->getStmtClass()) {
1153:     case Stmt::ForStmtClass:
1154:     case Stmt::WhileStmtClass:
1155:     case Stmt::CXXForRangeStmtClass:
1156:     case Stmt::ObjCForCollectionStmtClass:
1158:     case Stmt::DoStmtClass: {
1248:   // Classify the current code body for better warning text.
1251:   // FIXME: Should we use a common classification enum and the same set of
1286:     // Classify the weak object being accessed for better warning text.
1903:       .setAlwaysAdd(Stmt::BinaryOperatorClass)
1904:       .setAlwaysAdd(Stmt::CompoundAssignOperatorClass)
1905:       .setAlwaysAdd(Stmt::BlockExprClass)
1906:       .setAlwaysAdd(Stmt::CStyleCastExprClass)
1907:       .setAlwaysAdd(Stmt::DeclRefExprClass)
1908:       .setAlwaysAdd(Stmt::ImplicitCastExprClass)
1909:       .setAlwaysAdd(Stmt::UnaryOperatorClass)
1910:       .setAlwaysAdd(Stmt::AttributedStmtClass);
github.com/llvm-mirror/clang:lib/Sema/AnalysisBasedWarnings.cpp:[master, ] lang:c++
777:   const DeclRefExpr *Needle;
57:   class UnreachableCodeHandler : public reachable_code::Callback {
126: class LogicalErrorHandler : public CFGCallback {
184:     // Skip function calls which are qualified with a templated class.
772: /// ContainsReference - A visitor class to search for references to
775: class ContainsReference : public ConstEvaluatedExprVisitor<ContainsReference> {
782:   ContainsReference(ASTContext &Context, const DeclRefExpr *Needle)
783:     : Inherited(Context), FoundReference(false), Needle(Needle) {}
794:     if (E == Needle)
1085:   class FallthroughMapper : public RecursiveASTVisitor<FallthroughMapper> {
1555: class UninitValsDiagReporter : public UninitVariablesHandler {
1667: class ThreadSafetyReporter : public clang::threadSafety::ThreadSafetyHandler {
1937: class ConsumedWarningsHandler : public ConsumedWarningsHandlerBase {
264:   // templated classes.
913:     switch (Term ? Term->getStmtClass() : Stmt::DeclStmtClass) {
920:     case Stmt::IfStmtClass: {
930:     case Stmt::ConditionalOperatorClass: {
940:     case Stmt::BinaryOperatorClass: {
960:     case Stmt::WhileStmtClass:
967:     case Stmt::ForStmtClass:
977:     case Stmt::CXXForRangeStmtClass:
990:     case Stmt::DoStmtClass:
999:     case Stmt::CaseStmtClass:
1004:     case Stmt::DefaultStmtClass:
1377:     switch (S->getStmtClass()) {
1378:     case Stmt::ForStmtClass:
1379:     case Stmt::WhileStmtClass:
1380:     case Stmt::CXXForRangeStmtClass:
1381:     case Stmt::ObjCForCollectionStmtClass:
1383:     case Stmt::DoStmtClass: {
1472:   // Classify the current code body for better warning text.
1475:   // FIXME: Should we use a common classification enum and the same set of
1510:     // Classify the weak object being accessed for better warning text.
2130:       .setAlwaysAdd(Stmt::BinaryOperatorClass)
2131:       .setAlwaysAdd(Stmt::CompoundAssignOperatorClass)
2132:       .setAlwaysAdd(Stmt::BlockExprClass)
2133:       .setAlwaysAdd(Stmt::CStyleCastExprClass)
2134:       .setAlwaysAdd(Stmt::DeclRefExprClass)
2135:       .setAlwaysAdd(Stmt::ImplicitCastExprClass)
2136:       .setAlwaysAdd(Stmt::UnaryOperatorClass)
2137:       .setAlwaysAdd(Stmt::AttributedStmtClass);
android.googlesource.com/platform/external/clang:lib/Sema/AnalysisBasedWarnings.cpp:[master, ] lang:c++
duplicate result
github.com/fuchsia-mirror/third_party-clang:lib/Sema/AnalysisBasedWarnings.cpp:[master, ] lang:c++
duplicate result
chromium.googlesource.com/native_client/nacl-toolchain:gdb/sim/common/sim-fpu.h:[master, ] lang:c++
89: } sim_fpu_class;
83:   sim_fpu_class_zero,
84:   sim_fpu_class_snan,
85:   sim_fpu_class_qnan,
86:   sim_fpu_class_number,
87:   sim_fpu_class_denorm,
88:   sim_fpu_class_infinity,
92:   sim_fpu_class class;
346: /* General number class and comparison operators.
46:    Needless to say the results, while better than for a packed 64 bit
297: /* Specific number classes.
chromium.googlesource.com/chromium/src/codesearch:third_party/perl/perl/lib/pods/perlobj.pod:[master, ] lang:pod
600: =head3 Class Names as Strings
772: =head2 The UNIVERSAL Class
168: =head2 A Class is Simply a Package
655: =head2 Invoking Class Methods
36: An object is simply a data structure that knows to which class it
41: A class is simply a package. A class provides methods that expect to
47: (or a package name, for class methods) as the first argument.
59: etc.) that have been explicitly associated with a particular class.
63: class.
70:       my $class = shift;
72:       return bless {}, $class;
81:       my $class = shift;
83:       return bless {}, $class;
88: subroutine that blesses a data structure into a class is a valid
93: and associates the hash with the class in C<$class>. In the simplest
94: case, the C<$class> variable will end up containing the string "File".
100:       my $class = shift;
103:       bless $self, $class;
113:       my $class = shift;
116:       bless $self, $class;
124: store data associated with the object. Typically, code inside the class
126: the class should always treat the object as opaque. This is called
150:   bless $foo, 'Class';
151:   print blessed( $bar );      # prints "Class"
169: X<class> X<package> X<@ISA> X<inheritance>
171: Perl does not provide any special syntax for class definitions. A
173: only difference is that in a class, the subroutines may expect a
174: reference to an object or the name of a class as the first argument.
175: This is purely a matter of convention, so a class may contain both
176: methods and subroutines which I<don't> operate on an object or class.
179: contains a list of that class's parent classes, if any. This array is
193: All classes inherit from the L<UNIVERSAL> class implicitly. The
194: L<UNIVERSAL> class is implemented by the Perl core, and provides
196: The C<UNIVERSAL> class will I<never> appear in a package's C<@ISA>
200: Attribute inheritance is left up the class to implement. See the
209: object or a class name as its first argument.
230: object (or class name), and the right hand side is the method name.
266: When a class inherits from another class, any methods defined in the
267: parent class are available to the child class. If you attempt to call a
268: method on an object that isn't defined in its own class, Perl will also
277: Since we didn't define a C<save()> method in the C<File::MP3> class,
278: Perl will look at the C<File::MP3> class's parent classes to find the
282: In this case, it finds a C<save()> method in the C<File> class. Note
285: class.
287: We can override a parent's method in a child class. When we do so, we
288: can still call the parent class's method with the C<SUPER>
289: pseudo-class.
299: use it for regular subroutine calls or class methods:
303:   SUPER->save($thing);     # FAIL: looks for save() method in class
313: The C<SUPER> pseudo-class is resolved from the package where the call
314: is made. It is I<not> resolved based on the object's class. This is
367: blessed into the C<C> class, the C<speak()> method in the C<B> class
369: parent class of C<B> (i.e the class the method call is in), not in the
370: parent class of C<C> (i.e. the class the object belongs to).
382: To declare multiple parents, you simply need to pass multiple class
403: in the C<Child> class, Perl will look for that method in the C<Parent>
404: class and then, if necessary, in the C<Grandparent> class.
409: When a class has multiple parents, the method lookup order becomes more
416: class's C<@ISA> array and searches from there.
451: C<next> pseudo-class. See the L<mro> documentation for more details on
458: class's parent class or adding subroutines to a class will invalidate
459: the cache for that class.
468: This means that a class must implement its own constructor. A
469: constructor is simply a class method that returns a reference to a new
473: object. Let's write a real constructor for the C<File> class we used
479:       my $class = shift;
485:       }, $class;
494: For our File::MP3 class, we can check to make sure that the path we're
500:       my $class = shift;
506:       return $class->SUPER::new(@_);
509: This constructor lets its parent class do the actual object
524: class, it's considered a best practice to wrap all access to the
537: use the accessors rather than having to know how a parent class is
602: Perl also lets you use a scalar containing a string as a class name:
604:   my $class = 'File';
606:   my $file = $class->new( $path, $data );
645: C<IO::File> class. Once you have an open filehandle, you can call
660: incorrectly. For example, the construct C<< Class->new() >> can be
661: interpreted as either C<< 'Class'->new() >> or C<< Class()->new() >>.
663: named Class(), then call new() as a method on the return value of
664: Class()". If there is a subroutine named C<Class()> in the current
665: namespace, Perl will always interpret C<< Class->new() >> as the second
667: C<Class()>
670: call on the class named "Class") in two ways. First, you can append a
671: C<::> to the class name:
673:     Class::->new()
677: Alternatively, you can quote the class name:
679:     'Class'->new()
681: Of course, if the class name is in a scalar Perl will do the right
684:     my $class = 'Class';
685:     $class->new();
697: This syntax can be used with any class or object method:
705: clear if C<save> is a method provided by the C<File> class or simply a
708: When used with class methods, the problem is even worse. Because Perl
710: whether the bareword after the method is a class name or subroutine
723: You can force Perl to interpret the bareword as a class name by
731: blessed into a class via the C<bless> function. The C<bless> function
734:   my $object = bless {}, $class;
737: In the first form, the anonymous hash is being blessed into the class
738: in C<$class>. In the second form, the anonymous hash is blessed into
759: been blessed into a class named "0". This is a possible, but quite
760: pathological. Don't create a class named "0" unless you know what
765: holds a reference to an object, it will return the name of the class
775: All classes automatically inherit from the L<UNIVERSAL> class, which is
776: built-in to the Perl core. This class provides a number of methods, all
777: of which can be called on either a class or an object. You can also
778: choose to override some of these methods in your class. If you do so,
783: =item isa($class)
787: class in C<$class>, or a member of a subclass of C<$class>.
805: The C<can> method checks to see if the class or object it was called on
806: has a method named C<$method>. This checks for the method in the class
810: If your class responds to method calls via C<AUTOLOAD>, you may want to
819: The C<VERSION> method returns the version number of the class
845: If you call a method that doesn't exist in a class, Perl will throw an
846: error. However, if that class or any of its parent classes defines an
854: C<$AUTOLOAD> package global for your class. Since this is a global, if
885: If your class does have an C<AUTOLOAD> method, we strongly recommend
886: that you override C<can> in your class as well. Your overridden C<can>
900: define a C<DESTROY> method in your class. This method will always be
918: If you define an C<AUTOLOAD> in your class, then Perl will call your
975:       my $class = shift;
978:       return bless \$time, $class;
1018:       my $class = shift;
1020:       my $self = bless \( my $object ), $class;
186: parent classes and make sure that the package doesn't inherit from
189: However the parent classes are set, the package's C<@ISA> variable will
269: look for that method in any parent classes it may have.
307:                            #       classes
406: If Perl cannot find the method in any of these classes, it will die
430: derived classes (i.e. before we tried C<Mother> and
442: terms, "C3" order ensures that shared parent classes are never searched
443: before child classes, so Perl will now search: C<Child>, C<Father>,
450: The C3 order also lets you call methods in sibling classes with the
544: syntax, so classes must provide explicitly written accessor methods.
716: barewords it has previously seen, and other input. Needless to say,
742: of a subclass to reuse the parent's constructor, but you may still run
799: You can also override C<DOES> directly in your own classes. If you
1048: some style guides on constructing both modules and classes.
536: Finally, using accessors makes inheritance much simpler. Subclasses can
chromium.googlesource.com/native_client/nacl-gdb:sim/common/sim-fpu.h:[master, ] lang:c++
89: } sim_fpu_class;
83:   sim_fpu_class_zero,
84:   sim_fpu_class_snan,
85:   sim_fpu_class_qnan,
86:   sim_fpu_class_number,
87:   sim_fpu_class_denorm,
88:   sim_fpu_class_infinity,
92:   sim_fpu_class class;
346: /* General number class and comparison operators.
46:    Needless to say the results, while better than for a packed 64 bit
297: /* Specific number classes.
github.com/hanwen/artisjokke:needle3d/needle-inserter3.hh:[master, ] lang:c++
10: class Needle_inserter3 : public Deformation_hook,  public Element_watcher
12:   enum Needle_state {
16:   Needle_state state_;
55:   Needle_inserter3 (Maubach_tree3*, Deformation_state*);
chromium.googlesource.com/chromium/deps/perl:perl/lib/pods/perlobj.pod:[master, ] lang:pod
duplicate result
github.com/hanwen/artisjokke:needle2d/needle-inserter.hh:[master, ] lang:c++
13: class Needle_inserter : public Deformation_hook
2:   declare Needle_inserter
54:   Needle_inserter (Maubach_tree*, Deformation_state*);
kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux:drivers/char/xillybus/xillybus_core.c:[master, ] lang:c
64: static struct class *xillybus_class;
1846: 		device = device_create(xillybus_class,
1868: 		device_destroy(xillybus_class, MKDEV(major, i));
1884: 		device_destroy(xillybus_class, MKDEV(endpoint->major, minor));
2085: 	xillybus_class = class_create(THIS_MODULE, xillyname);
2086: 	if (IS_ERR(xillybus_class))
2087: 		return PTR_ERR(xillybus_class);
2091: 		class_destroy(xillybus_class);
2103: 	class_destroy(xillybus_class);
84:  * They are held for short direct memory manipulations. Needless to say,
github.com/google/kmsan:drivers/char/xillybus/xillybus_core.c:[master, ] lang:c
duplicate result
github.com/google/capsicum-linux:drivers/char/xillybus/xillybus_core.c:[capsicum, ] lang:c
duplicate result
github.com/gwtproject/gwt:samples/dynatable/src/com/google/gwt/sample/dynatable/server/SchoolCalendarServiceImpl.java:[master, ] lang:java
52:   private static final int CLASS_LENGTH_MINS = 50;
34: public class SchoolCalendarServiceImpl extends RemoteServiceServlet implements
146:       int absStopMins = absStartMins + CLASS_LENGTH_MINS;
43:       "Crutcher", "Needler", "Wilson", "Chase", "Edelstein"};
168:     generateRandomSchedule(student.getClassSchedule());
github.com/google/ktsan:drivers/char/xillybus/xillybus_core.c:[tsan, ] lang:c
64: static struct class *xillybus_class;
1844: 		device = device_create(xillybus_class,
1866: 		device_destroy(xillybus_class, MKDEV(major, i));
1882: 		device_destroy(xillybus_class, MKDEV(endpoint->major, minor));
2083: 	xillybus_class = class_create(THIS_MODULE, xillyname);
2084: 	if (IS_ERR(xillybus_class))
2085: 		return PTR_ERR(xillybus_class);
2089: 		class_destroy(xillybus_class);
2101: 	class_destroy(xillybus_class);
84:  * They are held for short direct memory manipulations. Needless to say,
chromium.googlesource.com/chromium/codesearch:src:codesearch-gitlink-overlay/third_party/perl/perl/lib/pods/perlobj.pod:[master, ] lang:pod
duplicate result
github.com/fuchsia-mirror/third_party-binutils-gdb:sim/common/sim-fpu.h:[master, ] lang:c++
89: } sim_fpu_class;
83:   sim_fpu_class_zero,
84:   sim_fpu_class_snan,
85:   sim_fpu_class_qnan,
86:   sim_fpu_class_number,
87:   sim_fpu_class_denorm,
88:   sim_fpu_class_infinity,
92:   sim_fpu_class class;
346: /* General number class and comparison operators.
46:    Needless to say the results, while better than for a packed 64 bit
297: /* Specific number classes.
github.com/fuchsia-mirror/third_party-gdb:sim/common/sim-fpu.h:[master, ] lang:c++
89: } sim_fpu_class;
83:   sim_fpu_class_zero,
84:   sim_fpu_class_snan,
85:   sim_fpu_class_qnan,
86:   sim_fpu_class_number,
87:   sim_fpu_class_denorm,
88:   sim_fpu_class_infinity,
92:   sim_fpu_class class;
346: /* General number class and comparison operators.
46:    Needless to say the results, while better than for a packed 64 bit
297: /* Specific number classes.
github.com/gwtproject/gwt:user/test/com/google/gwt/uibinder/test/client/NeedlesslyAnnotatedLabel.java:[master, ] lang:java
25: public class NeedlesslyAnnotatedLabel extends Label {
26:   @UiConstructor public NeedlesslyAnnotatedLabel() {
github.com/google/error-prone:check_api/src/test/java/com/google/errorprone/names/NeedlemanWunschEditDistanceTest.java:[master, ] lang:java
27: public class NeedlemanWunschEditDistanceTest {
26: @RunWith(JUnit4.class)
25: /** Tests for NeedlemanWunschEditDistance */
34:         NeedlemanWunschEditDistance.getEditDistance(
47:         NeedlemanWunschEditDistance.getEditDistance(
62:         NeedlemanWunschEditDistance.getWorstCaseEditDistance(
github.com/google/error-prone:check_api/src/main/java/com/google/errorprone/names/NeedlemanWunschEditDistance.java:[master, ] lang:java
30: public final class NeedlemanWunschEditDistance {
32:   private NeedlemanWunschEditDistance() {
20:  * The Needleman-Wunsch algorithm for finding least-cost string edit distances between pairs of
26:  * <p>See http://en.wikipedia.org/wiki/Needleman-Wunsch_algorithm
chromium.googlesource.com/arc/arc:third_party/chromium-ppapi/native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc:[master, ] lang:c++
266: void MouseLockInstance::DrawNeedle(pp::ImageData* image,
46:   RequestInputEvents(PP_INPUTEVENT_CLASS_MOUSE | PP_INPUTEVENT_CLASS_KEYBOARD);
348: class MouseLockModule : public pp::Module {
216:   DrawNeedle(&image, kForegroundColor);
269:     Log("DrawNeedle with NULL image");
chromium.googlesource.com/arc/arc:third_party/android/external/chromium_org/native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc:[master, ] lang:c++
duplicate result
chromium.googlesource.com/arc/arc:third_party/chromium-ppapi/third_party/WebKit/PerformanceTests/Speedometer/resources/main.js:[master, ] lang:javascript
105:     _updateGaugeNeedle: function (rpm) {
36:         this._updateGaugeNeedle(results.mean);
172:     currentSectionElement.classList.remove('selected');
173:     newSectionElement.classList.add('selected');
109:         var gaugeNeedleElement = document.querySelector('#summarized-results > .gauge .needle');
110:         gaugeNeedleElement.style.setProperty('-webkit-transform', needleRotationValue);
111:         gaugeNeedleElement.style.setProperty('-moz-transform', needleRotationValue);
112:         gaugeNeedleElement.style.setProperty('-ms-transform', needleRotationValue);
113:         gaugeNeedleElement.style.setProperty('transform', needleRotationValue);
chromium.googlesource.com/chromium/src:native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc:[master, ] lang:c++
duplicate result
chromium.googlesource.com/ios-chromium-mirror:native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc:[master, ] lang:c++
duplicate result
chromium.googlesource.com/dart/dartium/src:native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc:[master, ] lang:c++
duplicate result
chromium.googlesource.com/chromium/codesearch:src/native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc:[master, ] lang:c++
duplicate result
chromium.googlesource.com/chromium/src:third_party/WebKit/PerformanceTests/Speedometer/resources/main.js:[master, ] lang:javascript
duplicate result
chromium.googlesource.com/ios-chromium-mirror:third_party/WebKit/PerformanceTests/Speedometer/resources/main.js:[master, ] lang:javascript
duplicate result
chromium.googlesource.com/chromium/codesearch:src/third_party/WebKit/PerformanceTests/Speedometer/resources/main.js:[master, ] lang:javascript
duplicate result
github.com/GoogleCloudPlatform/IoT-Icebreaker:appengine/sensordata-to-ui/public/third_party/epoch/epoch.js:[master, ] lang:javascript
3412:   Gauge.prototype.drawNeedle = function() {
1661:       this.g.append("g").attr("class", "x axis bottom").attr("transform", "translate(0, " + (this.innerHeight()) + ")").call(this.bottomAxis());
1664:       this.g.append("g").attr('class', 'x axis top').call(this.topAxis());
1667:       this.g.append("g").attr("class", "y axis left").call(this.leftAxis());
1670:       this.g.append('g').attr('class', 'y axis right').attr('transform', "translate(" + (this.innerWidth()) + ", 0)").call(this.rightAxis());
1802:     layer.enter().append('g').attr('class', function(d) {
1805:     layer.append('path').attr('class', 'area').attr('d', function(d) {
1985:     layer.enter().append("g").attr('class', 'layer').attr("transform", function(d) {
1991:     rects.attr('class', function(d) {
2001:     rects.enter().append('rect').attr('class', function(d) {
2026:     layer.enter().append("g").attr('class', 'layer').attr("transform", function(d) {
2032:     rects.attr('class', function(d) {
2042:     rects.enter().append('rect').attr('class', function(d) {
2270:     layer.enter().append('g').attr('class', function(l) {
2272:     }).append('path').attr('class', 'line').attr('d', (function(_this) {
2326:     arcs.enter().append('g').attr('class', function(d) {
2393:     layer.enter().append('g').attr('class', function(d) {
2407:     dots.enter().append('circle').attr('class', 'dot').attr("r", function(d) {
2582:       axis = this.bottomAxis = this.svg.append('g').attr('class', "x axis bottom canvas").attr('transform', "translate(" + (this.margins.left - 1) + ", " + (this.innerHeight() / this.pixelRatio + this.margins.top) + ")");
2583:       axis.append('path').attr('class', 'domain').attr('d', "M0,0H" + (this.innerWidth() / this.pixelRatio + 1));
2586:       axis = this.topAxis = this.svg.append('g').attr('class', "x axis top canvas").attr('transform', "translate(" + (this.margins.left - 1) + ", " + this.margins.top + ")");
2587:       axis.append('path').attr('class', 'domain').attr('d', "M0,0H" + (this.innerWidth() / this.pixelRatio + 1));
2623:       this.svg.append("g").attr("class", "y axis left").attr('transform', "translate(" + (this.margins.left - 1) + ", " + this.margins.top + ")").call(this.leftAxis());
2626:       return this.svg.append('g').attr('class', 'y axis right').attr('transform', "translate(" + (this.width - this.margins.right) + ", " + this.margins.top + ")").call(this.rightAxis());
2844:       g = this.bottomAxis.append('g').attr('class', 'tick major').attr('transform', "translate(" + (tick.x + 1) + ",0)").style('opacity', tick.opacity);
2850:       g = this.topAxis.append('g').attr('class', 'tick major').attr('transform', "translate(" + (tick.x + 1) + ",0)").style('opacity', tick.opacity);
3297:     this.svg = this.el.insert('svg', ':first-child').attr('width', this.width).attr('height', this.height).attr('class', 'gauge-labels');
3302:     this.svg.append('g').attr('transform', "translate(" + (this.textX()) + ", " + (this.textY()) + ")").append('text').attr('class', 'value').text(this.options.format(this.value));
438: Epoch.Chart.Base = (function(superClass) {
441:   extend(Base, superClass);
585:     var category, classes, i, layer, len;
589:       classes = ['layer'];
590:       classes.push("category" + category);
594:         classes.push(Epoch.Util.dasherize(layer.label));
596:       layer.className = classes.join(' ');
758: Epoch.Chart.SVG = (function(superClass) {
759:   extend(SVG, superClass);
785: Epoch.Chart.Canvas = (function(superClass) {
786:   extend(Canvas, superClass);
872:     var classNames, element, id, match, tag, whole;
877:     whole = match[0], tag = match[1], id = match[2], classNames = match[3];
883:     if (classNames != null) {
884:       element.className = classNames.substr(1).replace(/\./g, ' ');
945:       if ((element.className != null) && element.className.length > 0) {
946:         sel += '.' + Epoch.Util.trim(element.className).replace(/\s+/g, '.');
1469: Epoch.Model = (function(superClass) {
1472:   extend(Model, superClass);
1524: Epoch.Chart.Plot = (function(superClass) {
1527:   extend(Plot, superClass);
1744: Epoch.Chart.Area = (function(superClass) {
1745:   extend(Area, superClass);
1803:       return d.className;
1818: Epoch.Chart.Bar = (function(superClass) {
1821:   extend(Bar, superClass);
1933:     var className, entry, j, k, l, layer, len, len1, map, name, ref, ref1, results, v;
1938:       className = 'bar ' + layer.className.replace(/\s*layer\s*/, '');
1948:           className: className
1992:       return d.className;
2002:       return d.className;
2033:       return d.className;
2043:       return d.className;
2135: Epoch.Chart.Histogram = (function(superClass) {
2138:   extend(Histogram, superClass);
2233: Epoch.Chart.Line = (function(superClass) {
2234:   extend(Line, superClass);
2271:       return l.className;
2288: Epoch.Chart.Pie = (function(superClass) {
2291:   extend(Pie, superClass);
2327:       return "arc pie " + d.data.className;
2365: Epoch.Chart.Scatter = (function(superClass) {
2368:   extend(Scatter, superClass);
2394:       return d.className;
2431: Epoch.Time.Plot = (function(superClass) {
2434:   extend(Plot, superClass);
2555:     var classes, copy, data, i, layer, start;
2563:       classes = ['layer'];
2564:       classes.push("category" + ((i | 0) + 1));
2566:         classes.push(Epoch.Util.dasherize(layer.label));
2568:       copy.className = classes.join(' ');
2989: Epoch.Time.Stack = (function(superClass) {
2990:   extend(Stack, superClass);
3074: Epoch.Time.Area = (function(superClass) {
3075:   extend(Area, superClass);
3089:     if ((layer != null) && (layer.className != null)) {
3090:       styles = this.getStyles("g." + (layer.className.replace(/\s/g, '.')) + " path.area");
3192: Epoch.Time.Bar = (function(superClass) {
3193:   extend(Bar, superClass);
3209:   Bar.prototype.setStyles = function(className) {
3211:     styles = this.getStyles("rect.bar." + (className.replace(/\s/g, '.')));
3236:       this.setStyles(layer.className);
3260: Epoch.Time.Gauge = (function(superClass) {
3263:   extend(Gauge, superClass);
3408:     this.drawNeedle();
3460: Epoch.Time.Heatmap = (function(superClass) {
3463:   extend(Heatmap, superClass);
3668:       styles = this.getStyles("." + (layer.className.split(' ').join('.')) + " rect.bucket");
3773: Epoch.Time.Line = (function(superClass) {
3774:   extend(Line, superClass);
3786:   Line.prototype.setStyles = function(className) {
3788:     styles = this.getStyles("g." + (className.replace(/\s/g, '.')) + " path.line");
3807:       this.setStyles(layer.className);
github.com/google/pepper.js:examples/mouselock/mouselock.cc:[master, ] lang:c++
268: void MouseLockInstance::DrawNeedle(pp::ImageData* image,
48:   RequestInputEvents(PP_INPUTEVENT_CLASS_MOUSE |
49:                      PP_INPUTEVENT_CLASS_KEYBOARD);
355: class MouseLockModule : public pp::Module {
217:   DrawNeedle(&image, kForegroundColor);
271:     Log("DrawNeedle with NULL image");
github.com/googleglass/gdk-compass-sample:app/src/main/java/com/google/android/glass/sample/compass/CompassView.java:[master, ] lang:java
341:     private void drawNeedle(Canvas canvas, boolean bottom) {
50: public class CompassView extends View {
217:         drawNeedle(canvas, false);
218:         drawNeedle(canvas, true);
github.com/google/ggrc-core:src/ggrc/assets/mockups/javascript/tree_view.js:[release/0.10-Raspberry, ] lang:javascript
22:       function findNeedle(list, slug) {
11:         var $item = $('<li/>', {'class': 'tree-item'});
109:         var $item = $('<li/>', {'class': 'tree-item'});
34:             result = findNeedle(list[prop].children, slug);
46:         item = findNeedle(this.options.instance.children, {
github.com/google/ggrc-core:src/ggrc/assets/mockups/javascript/info_panel.js:[release/0.10-Raspberry, ] lang:javascript
65:       function findNeedle(list, slug) {
19:       this.element.removeClass('hidden').height(0);
53:       el.find('i').addClass('active').closest('li').siblings().find('i')
54:         .removeClass('active');
77:             result = findNeedle(list[prop].children, slug);
93:       view = findNeedle(tab.children, {
chromium.googlesource.com/chromium:native_client_sdk/src/examples/mouselock/mouselock.cc:[trunk, ] lang:c++
241: void MouseLockInstance::DrawNeedle(pp::ImageData* image,
49:   RequestInputEvents(PP_INPUTEVENT_CLASS_MOUSE |
50:                      PP_INPUTEVENT_CLASS_KEYBOARD);
324: class MouseLockModule : public pp::Module {
193:   DrawNeedle(&image, foreground_color);
244:     Log("DrawNeedle with NULL image");
android.googlesource.com/platform/external/chromium_org:native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc:[master, ] lang:c++
duplicate result
github.com/bazelbuild/bazel:src/main/java/com/google/devtools/build/lib/rules/android/AndroidCommon.java:[master, ] lang:java
128:   private Artifact classJar;
131:   private Artifact genClassJar;
133:   private Artifact resourceClassJar;
857:   public Artifact getGenClassJar() {
869:   public Artifact getResourceClassJar() {
79:  * A helper class for android rules.
84: public class AndroidCommon {
93:       RuleContext ruleContext, Mode mode, final Class<T> classType) {
177:         AndroidNeverLinkLibrariesProvider.class)) {
184:           deps, JavaCompilationArgsProvider.class)) {
358:       // Needle index is exhausted, so the needle must match.
377:         ruleContext, Mode.TARGET, NativeLibsZipsProvider.class);
394:         ruleContext.isLegalFragment(AndroidConfiguration.class)
395:             && ruleContext.getFragment(AndroidConfiguration.class).getExportsManifestDefault();
413:     // We don't actually use the ijar. That is almost the same as the resource class jar
430:         AndroidRuleClasses.ANDROID_RESOURCES_CLASS_JAR);
437:     // Only build the class jar if it's not already generated internally by resource processing.
457:       // Otherwise, it should have been the AndroidRuleClasses.ANDROID_RESOURCES_CLASS_JAR.
461:                   AndroidRuleClasses.ANDROID_RESOURCES_CLASS_JAR)));
533:     classJar = ruleContext.getImplicitOutputArtifact(AndroidRuleClasses.ANDROID_LIBRARY_CLASS_JAR);
541:               .getProvider(FileProvider.class)
566:       // Use a fast-path R class generator for android_binary with local resources, where there is
567:       // a bottleneck. For legacy resources, the srcjar and R class compiler don't match up
628:         // layout XML up the dependency chain. Say a library's XML references a Java class,
750:       builder.add(GeneratedExtensionRegistryProvider.class, generatedExtensionRegistryProvider);
779:         .add(JavaRuleOutputJarsProvider.class, ruleOutputJarsProvider)
780:         .add(JavaSourceJarsProvider.class, sourceJarsProvider)
782:             JavaRuntimeJarProvider.class,
784:         .add(RunfilesProvider.class, RunfilesProvider.simple(getRunfiles()))
785:         .add(AndroidResourcesProvider.class, resourceApk.toResourceProvider(ruleContext.getLabel()))
787:             AndroidIdeInfoProvider.class,
798:         .add(JavaCompilationArgsProvider.class, compilationArgsProvider)
836:     return prerequisite.getProvider(AndroidResourcesProvider.class);
849:         && ruleContext.getFragment(AndroidConfiguration.class).allowSrcsLessAndroidLibraryDeps();
922:     return context.getConfiguration().getFragment(AndroidConfiguration.class);
952:       // But it's still important to process the deps' .bin files so any Java class references get
991:       ApkProvider apkProvider = dep.getProvider(ApkProvider.class);
992:       FileProvider fileProvider = dep.getProvider(FileProvider.class);
43: import com.google.devtools.build.lib.packages.RuleClass.ConfiguredTargetFactory.RuleErrorException;
51: import com.google.devtools.build.lib.rules.java.ClasspathConfiguredFragment;
55: import com.google.devtools.build.lib.rules.java.JavaCompilationArgs.ClasspathType;
98:         builder.add(ruleContext.getPrerequisites(attr, mode, classType));
198:       Artifact jarToDex, Artifact classesDex, List<String> dexOptions, boolean multidex,
218:     args.add("--output=" + classesDex.getExecPathString());
224:         .addOutput(classesDex)
410:     // Add the compiled resource jar to the classpath of the main compilation.
412:     // Add the compiled resource jar to the classpath of consuming targets.
481:       // combined resource constants copy needs to come before library classes that may contain
534:     idlHelper = new AndroidIdlHelper(ruleContext, classJar);
576:         // Combined resource constants needs to come even before our own classes that may contain
617:     this.jarsProducedForRuntime = jarsProducedForRuntime.add(classJar).build();
629:         // e.g.: "<variable type="some.package.SomeClass" />". Data binding's annotation processor
630:         // triggers a compile against SomeClass. Because data binding reprocesses bindings
632:         // happens at the top-level binary. Since SomeClass.java is declared in the library, this
640:     helper.addLibrariesToAttributes(javaCommon.targetsTreatedAsDeps(ClasspathType.COMPILE_ONLY));
641:     attributes.setRuleKind(ruleContext.getRule().getRuleClass());
645:         javaCommon.targetsTreatedAsDeps(ClasspathType.BOTH));
668:       // We only want to add a jar to the classpath of a dependent rule if it has content.
669:       javaArtifactsBuilder.addRuntimeJar(classJar);
670:       jar = classJar;
673:     filesBuilder.add(classJar);
675:     manifestProtoOutput = helper.createManifestProtoOutput(classJar);
680:       genClassJar = helper.createGenJar(classJar);
681:       genSourceJar = helper.createGensrcJar(classJar);
682:       helper.createGenJarAction(classJar, manifestProtoOutput, genClassJar);
691:     outputDepsProto = helper.createOutputDepsProtoArtifact(classJar, javaArtifactsBuilder);
692:     helper.createCompileActionWithInstrumentation(classJar, manifestProtoOutput, genSourceJar,
719:         new ClasspathConfiguredFragment(
747:     idlHelper.addTransitiveInfoProviders(builder, classJar, manifestProtoOutput);
760:             .addOutputJar(classJar, iJar, ImmutableList.of(srcJar))
770:     javaCommon.addTransitiveInfoProviders(builder, filesToBuild, classJar, ANDROID_COLLECTION_SPEC);
874:    * Returns Jars produced by this rule that may go into the runtime classpath.  By contrast
875:    * {@link #getRuntimeJars()} returns the complete runtime classpath needed by this rule, including
896:         javaCommon.targetsTreatedAsDeps(ClasspathType.BOTH), ImmutableList.<String>of());
953:       // re-referenced so they don't get filtered out of the compilation classpath by JavaBuilder
954:       // (which filters out classpath .jars that "aren't used": see --reduce_classpath). If data
969:       compileDeps = JavaCommon.defaultDeps(ruleContext, semantics, ClasspathType.COMPILE_ONLY);
971:       runtimeDeps = JavaCommon.defaultDeps(ruleContext, semantics, ClasspathType.RUNTIME_ONLY);
972:       bothDeps = JavaCommon.defaultDeps(ruleContext, semantics, ClasspathType.BOTH);
41: import com.google.devtools.build.lib.packages.NativeClassObjectConstructor;
44: import com.google.devtools.build.lib.packages.SkylarkClassObject;
104:   public static final <T extends SkylarkClassObject> Iterable<T> getTransitivePrerequisites(
105:       RuleContext ruleContext, Mode mode, NativeClassObjectConstructor<T> key) {
247:             .setIdlClassJar(idlHelper.getIdlClassJar())
301:     String packageName = JavaUtil.getJavaFullClassname(nameFragment);
407:       boolean useRClassGenerator)
409:     compileResourceJar(javaSemantics, resourceApk, resourcesJar, useRClassGenerator);
411:     attributes.addDirectJars(NestedSetBuilder.create(Order.STABLE_ORDER, resourceClassJar));
416:     artifactsBuilder.addCompileTimeJar(resourceClassJar);
420:     filesBuilder.add(resourceClassJar);
425:       boolean useRClassGenerator)
428:         AndroidRuleClasses.ANDROID_RESOURCES_SOURCE_JAR);
429:     resourceClassJar = ruleContext.getImplicitOutputArtifact(
438:     if (resourceApk.getResourceJavaClassJar() == null) {
439:       if (useRClassGenerator) {
440:         new RClassGeneratorActionBuilder(ruleContext)
444:             .setClassJarOut(resourceClassJar)
448:             javacHelper.createOutputDepsProtoArtifact(resourceClassJar, javaArtifactsBuilder);
450:             resourceClassJar,
459:           resourceApk.getResourceJavaClassJar().equals(
483:       attributes.addRuntimeClassPathEntry(resourcesJar);
537:     ImmutableList<Artifact> bootclasspath;
539:       bootclasspath = ImmutableList.<Artifact>builder()
540:           .addAll(ruleContext.getPrerequisite("$desugar_java8_extra_bootclasspath", Mode.HOST)
546:       bootclasspath =
554:             .setBootClassPath(bootclasspath);
569:       boolean useRClassGenerator = isBinary && !resourceApk.isLegacy();
571:           filesBuilder, useRClassGenerator);
578:         artifactsBuilder.addRuntimeJar(resourceClassJar);
579:         jarsProducedForRuntime.add(resourceClassJar);
587:             resourceApk.getPrimaryResource().getJavaPackage(), resourceClassJar);
615:       jarsProducedForRuntime.add(generatedExtensionRegistryProvider.getClassJar());
685:     srcJar = ruleContext.getImplicitOutputArtifact(AndroidRuleClasses.ANDROID_LIBRARY_SOURCE_JAR);
718:     javaCommon.setClassPathFragment(
723:             helper.getBootclasspathOrDefault()));
753:     if (resourceClassJar != null && resourceSourceJar != null) {
754:       resourceJar = new OutputJar(resourceClassJar, null, ImmutableList.of(resourceSourceJar));
771:     javaCommon.addGenJarsProvider(builder, genClassJar, genSourceJar);
858:     return genClassJar;
870:     return resourceClassJar;
1000:         supportApks.addAll(FileType.filter(fileProvider.getFilesToBuild(), AndroidRuleClasses.APK));
chromium.googlesource.com/experimental/src-pruned-refs:native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc:[master, ] lang:c++
duplicate result
chromium.googlesource.com/chromium/chromium:native_client_sdk/src/examples/api/mouse_lock/mouse_lock.cc:[trunk, ] lang:c++
duplicate result
chromium.googlesource.com/chromium/src/third_party:WebKit/PerformanceTests/Speedometer/resources/main.js:[master, ] lang:javascript
duplicate result
android.googlesource.com/platform/external/swig:Doc/Manual/CPlusPlus11.html:[master, ] lang:html
891: <H3><a name="CPlusPlus11_sizeof">7.2.25 Allow sizeof to work on members of classes without an explicit object</a></H3>
12: <div class="sectiontoc">
91: <div class="code"><pre>
92: class MyClass {
106: Generally you would just ignore them via <tt>%ignore</tt> before parsing the class.
110: <div class="code"><pre>
118: <div class="shell">
133: <div class="code"><pre>
149: <div class="code"><pre>
150: template class std::vector&lt;int&gt;;        // C++03 explicit instantiation in C++
151: extern template class std::vector&lt;int&gt;; // C++11 explicit instantiation suppression in C++
164: <div class="shell">
172: They often appear in constructors which are overloaded with alternative approaches to initializing a class,
177: <div class="code"><pre>
179: class Container {
188: <p>Alternatively you could modify the class and add another constructor for initialization by some other means,
191: <div class="code"><pre>
193: class Container {
205: <div class="targetlang"><pre>
210: If you are unable to modify the class being wrapped, consider ignoring the initializer-list constructor and using
214: <div class="code"><pre>
227: class Container {
237: The above makes the wrappers look is as if the class had been declared as follows:
240: <div class="code"><pre>
242: class Container {
261: <div class="code"><pre>
265: class Container {
293: <div class="code"><pre>
312: <div class="targetlang"><pre>
326: <div class="code"><pre>
332: <div class="code"><pre>
347: <div class="code"><pre>
361: <div class="code"><pre>
373: <div class="code"><pre>
381: <div class="code"><pre>
393: <div class="targetlang"><pre>
400: <div class="code"><pre>
412: <div class="code"><pre>
413: class A {
432: This is parsed correctly, but the additional constructors are not currently added to the derived proxy class in the target language.
440: <div class="code"><pre>
441: class BaseClass {
446: class DerivedClass: public BaseClass {
457: <div class="code"><pre>
458: class SomeClass {
475: <div class="code"><pre>
499: <p>SWIG supports strongly typed enumerations and parses the new <tt>enum class</tt> syntax and forward declarator for the enums, such as:</p>
500: <div class="code"><pre>
501: enum class MyEnum : unsigned int;
508: <div class="code"><pre>
510:   enum class RainbowColors : unsigned int {
514:   enum class WarmColors {
527: However, generally, most scripting languages mangle in the strongly typed enumeration's class name,
531: <div class="targetlang"><pre>
539: <div class="shell"><pre>
544: The strongly typed languages often wrap normal enums into an enum class and so treat normal enums and strongly typed enums the same.
548: <div class="targetlang"><pre>
559: <div class="code"><pre>
569: <div class="code"><pre>
570: class U {
575: class V {
580: class TestClass {
613: <div class="code"><pre>
621: <div class="code"><pre>
628: <div class="code"><pre>
630: class SomeType {
645: <div class="code"><pre>
662: <div class="code"><pre>
685: block, variadic class inheritance and variadic constructor and
688: <div class="code"><pre>
689: template &lt;typename... BaseClasses&gt; class ClassName : public BaseClasses... {
700: <div class="code"><pre>
708: <div class="code"><pre>
721: <div class="code"><pre>
756: <div class="code"><pre>
763: <div class="code"><pre>
771: <div class="code"><pre>
782: <div class="shell"><pre>
791: <div class="code"><pre>
799: <div class="code"><pre>
807: <div class="code"><pre>
819: <div class="code"><pre>
839: <div class="code"><pre>
859: <div class="code"><pre>
884: <div class="code"><pre>
898: <div class="code"><pre>
907: <div class="targetlang"><pre>
922: <div class="code"><pre>
935: <div class="code"><pre>
944: <div class="code"><pre>
955: <div class="code"><pre>
967: <div class="code"><pre>
1041: <div class="code"><pre>
1058: <div class="targetlang"><pre>
1068: <div class="code"><pre>
1073:   template&lt; class T1, class T2 &gt; static int do_it(T1 &amp;, T2 &amp;)  { /*...*/ return 1; }
1078:   template&lt; class T1, class T2 &gt; static int do_it(T1, T2)  { /*...*/ return 2; }
1082: template&lt; class T1, class T2 &gt; int elaborate(T1 A, T2 B) {
1097: <div class="code"><pre>
1106: <div class="targetlang"><pre>
1117: The new <tt>std::result_of</tt> class introduced in the &lt;functional&gt; header provides a generic way to obtain the return type of a function type via <tt>std::result_of::type</tt>.
1120: The technique basically forward declares the <tt>std::result_of</tt> template class, then partially specializes it for the function types of interest.
1124: <div class="code"><pre>
1147: template&lt;class Fun, class Arg&gt;
1159: The empty template instantiation suffices as no proxy class is required for <tt>std::result_of&lt;Fun(Arg)&gt;::type</tt> as this type is really just a <tt>double</tt>.
1168: <div class="targetlang"><pre>
41: <li><a href="#CPlusPlus11_sizeof">Allow sizeof to work on members of classes without an explicit object</a>
96:   MyClass(MyClass &amp;&amp;other) : numbers(std::move(other.numbers)) {}
97:   MyClass &amp; operator=(MyClass &amp;&amp;other) {
111: %ignore MyClass::MyClass(MyClass &amp;&amp;);
160: they are intended for compile time initialization of classes using the special <tt>std::initializer_list</tt> type.
276: Needless to say, this approach is very limited, but could be improved upon, but only slightly.
435: The extra constructors provided by the <tt>using</tt> syntax will add the appropriate constructors into the target language proxy derived classes.
436: In the example below a wrapper for the <tt>DerivedClass(int)</tt> is added to <tt>DerivedClass</tt>:
443:   BaseClass(int iValue);
448:   using BaseClass::BaseClass; // Adds DerivedClass(int) constructor
460:   SomeClass() {}
461:   explicit SomeClass(int new_value) : value(new_value) {}
583:   TestClass(U const &amp;val) { t=val.u; }
586:   explicit TestClass(V const &amp;val) { t=val.v; }
600: The effect of explicit constructors and operators has little relevance for the proxy classes as target
691:   ClassName (BaseClasses &amp;&amp;... baseClasses) : BaseClasses(baseClasses)... {}
701: %template(MyVariant1) ClassName&lt;&gt;         // zero argument not supported yet
702: %template(MyVariant2) ClassName&lt;int&gt;      // ok
703: %template(MyVariant3) ClassName&lt;int, int&gt; // too many arguments not supported yet
709: const int SIZE = sizeof...(ClassName&lt;int, int&gt;);
980: classes introduced (thread, mutex, locks, condition variables, task). The main reason is that
1004: While SWIG could provide wrappers for the new C++11 regular expressions classes, there is little need as the target languages have their own regular expression facilities.
1036: SWIG supports functor classes in a few languages in a very natural way.
github.com/google/mysql-protobuf:unittest/gunit/item_like-t.cc:[mysql-5.7.9, ] lang:c++
218: static const char* falseNeedles[] = {
25: #include "sql_class.h"
39: class ItemLikeTest : public ::testing::Test
91: class ItemLikeTestP : public ::testing::TestWithParam<const char*>
108: class ItemFalseLikeTestP : public ::testing::TestWithParam<const char*>
199: INSTANTIATE_TEST_CASE_P(MoreNeedles, ItemLikeTestP,
203: TEST_P(ItemLikeTestP, MoreNeedlesTest)
289: INSTANTIATE_TEST_CASE_P(FalseNeedlesTest, ItemFalseLikeTestP,
290:                         ::testing::ValuesIn(falseNeedles));
292: TEST_P(ItemFalseLikeTestP,FalseNeedlesTest)
android.googlesource.com/platform/packages/wallpapers/MusicVisualization:src/com/android/musicvis/vis5/Visualization5RS.java:[master, ] lang:java
45:     private int mNeedlePos = 0;
46:     private int mNeedleSpeed = 0;
48:     private int mNeedleMass = 10;
35: class Visualization5RS extends RenderScriptScene {
51:     static class WorldState {
358:         // mNeedleSpeed * 3 is for the movement of the needle, which induces an opposite current
360:         // mNeedlePos + mSpringForceAtOrigin is for the force of the spring pushing the needle back
361:         int netforce = volt - mNeedleSpeed * 3 - (mNeedlePos + mSpringForceAtOrigin) ;
362:         int acceleration = netforce / mNeedleMass;
363:         mNeedleSpeed += acceleration;
364:         mNeedlePos += mNeedleSpeed;
365:         if (mNeedlePos < 0) {
366:             mNeedlePos = 0;
367:             mNeedleSpeed = 0;
368:         } else if (mNeedlePos > 32767) {
369:             if (mNeedlePos > 33333) {
372:             mNeedlePos = 32767;
373:             mNeedleSpeed = 0;
379:         mWorldState.mAngle = 131f - (mNeedlePos / 410f); // ~80 degree range
android.googlesource.com/platform/packages/wallpapers/MusicVisualization:src/com/android/musicvis/vis4/Visualization4RS.java:[master, ] lang:java
45:     private int mNeedlePos = 0;
46:     private int mNeedleSpeed = 0;
48:     private int mNeedleMass = 10;
35: class Visualization4RS extends RenderScriptScene {
51:     static class WorldState {
235:         // mNeedleSpeed * 3 is for the movement of the needle, which induces an opposite current
237:         // mNeedlePos + mSpringForceAtOrigin is for the force of the spring pushing the needle back
238:         int netforce = volt - mNeedleSpeed * 3 - (mNeedlePos + mSpringForceAtOrigin) ;
239:         int acceleration = netforce / mNeedleMass;
240:         mNeedleSpeed += acceleration;
241:         mNeedlePos += mNeedleSpeed;
242:         if (mNeedlePos < 0) {
243:             mNeedlePos = 0;
244:             mNeedleSpeed = 0;
245:         } else if (mNeedlePos > 32767) {
246:             if (mNeedlePos > 33333) {
249:             mNeedlePos = 32767;
250:             mNeedleSpeed = 0;
256:         mWorldState.mAngle = 131f - (mNeedlePos / 410f); // ~80 degree range