Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cmu-db/15445-bootcamp
/ functions
Functions
101 in github.com/cmu-db/15445-bootcamp
⨍
Functions
101
◇
Types & classes
15
↓ 6 callers
Method
InsertAtHead
Function for inserting val at the head of the DLL.
src/iterator.cpp:125
↓ 5 callers
Method
PrintValid
src/move_constructors.cpp:90
↓ 5 callers
Method
get_val
src/spring2024/s24_my_ptr.cpp:61
↓ 5 callers
Method
print
src/templated_classes.cpp:17
↓ 4 callers
Method
GetX
src/shared_ptr.cpp:25
↓ 3 callers
Method
GetVal
Getter function.
src/wrapper_class.cpp:102
↓ 3 callers
Method
GetX
src/unique_ptr.cpp:34
↓ 3 callers
Method
PrintPoint
src/vectors.cpp:44
↓ 3 callers
Function
bar
We define a function bar inside the N::M namespace.
src/namespaces.cpp:35
↓ 3 callers
Function
foo
src/namespaces.cpp:79
↓ 2 callers
Method
Begin
The Begin() function returns an iterator to the head of the DLL, which is the first element to access when iterating through.
src/iterator.cpp:139
↓ 2 callers
Method
End
The End() function returns an iterator that marks the one-past-the-last element of the iterator. In this case, this would be an iterator with its curr
src/iterator.cpp:146
↓ 2 callers
Method
SetX
src/shared_ptr.cpp:27
↓ 2 callers
Function
print_int_vector
A utility function to print the elements of an int vector. The code for this should be understandable and similar to the code iterating through elemen
src/vectors.cpp:56
↓ 2 callers
Method
set_val
src/spring2024/s24_my_ptr.cpp:62
↓ 2 callers
Function
spam
We define a function spam in the ABC namespace. This is used in line 57.
src/namespaces.cpp:26
↓ 2 callers
Function
take_ownership
src/spring2024/s24_my_ptr.cpp:84
↓ 1 callers
Method
GetX
src/vectors.cpp:40
↓ 1 callers
Method
GetY
src/shared_ptr.cpp:26
↓ 1 callers
Method
SetVal
Setter function.
src/wrapper_class.cpp:97
↓ 1 callers
Method
SetX
src/unique_ptr.cpp:36
↓ 1 callers
Function
SetXTo445
Function that takes in a unique pointer reference and changes its x value to 445.
src/unique_ptr.cpp:46
↓ 1 callers
Method
SetY
src/shared_ptr.cpp:28
↓ 1 callers
Method
SetY
src/vectors.cpp:43
↓ 1 callers
Function
add
src/templated_functions.cpp:21
↓ 1 callers
Function
add_three
A function that takes an int reference and adds 3 to it.
src/references.cpp:17
↓ 1 callers
Function
add_three_and_print
Function that takes in a rvalue reference as an argument. It appends 3 to the back of the vector passed in as an argument, and prints the values in th
src/move_semantics.cpp:54
↓ 1 callers
Function
copy_shared_ptr_in_function
src/shared_ptr.cpp:45
↓ 1 callers
Function
eggs
src/namespaces.cpp:95
↓ 1 callers
Function
modify_ptr_via_ref
Function that modifies a Point object inside a shared pointer by passing the shared pointer argument as a reference.
src/shared_ptr.cpp:37
↓ 1 callers
Function
modify_ptr_via_rvalue_ref
Function that modifies a Point object inside a shared pointer by passing the shared pointer argument as a rvalue reference.
src/shared_ptr.cpp:41
↓ 1 callers
Function
move_add_three_and_print
Function that takes in a rvalue reference as an argument. It seizes ownership of the vector passed in, appends 3 to the back of it, and prints the val
src/move_semantics.cpp:40
↓ 1 callers
Function
not_take_ownership
src/spring2024/s24_my_ptr.cpp:88
↓ 1 callers
Function
peloton
src/namespaces.cpp:89
↓ 1 callers
Method
print_int
src/templated_classes.cpp:76
↓ 1 callers
Function
uses_DEF_bar
We define a function uses_DEF_bar inside the ABC namespace, but not inside the DEF namespace. Since bar and uses_DEF_bar are both in the ABC namespace
src/namespaces.cpp:68
↓ 1 callers
Function
uses_bar
We define a function uses_bar inside the ABC::DEF namespace. However, since bar is in the same namespace as uses_bar (they're both in the ABC::DEF nam
src/namespaces.cpp:43
↓ 1 callers
Function
uses_spam
We define a function uses_spam in the ABC::DEF namespace. To refer to ABC::spam from the ABC::DEF namespace, we have no other option but to refer to i
src/namespaces.cpp:55
Method
Abcdefghijklmnopqrstuvwxyz
src/auto.cpp:29
Method
Bar
src/templated_classes.cpp:75
Method
DLL
DLL class constructor.
src/iterator.cpp:109
Method
DLLIterator
src/iterator.cpp:59
Method
Foo
src/templated_classes.cpp:16
Method
Foo2
src/templated_classes.cpp:31
Method
FooSpecial
src/templated_classes.cpp:51
Method
FooSpecial
src/templated_classes.cpp:63
Method
GetAge
src/move_constructors.cpp:82
Method
GetY
src/unique_ptr.cpp:35
Method
GetY
src/vectors.cpp:41
Method
IntPtrManager
All constructors of a wrapper class are supposed to initialize a resource. In this case, this means allocating the memory that we are managing. The de
src/wrapper_class.cpp:44
Method
Node
src/iterator.cpp:42
Method
Person
src/move_constructors.cpp:39
Method
Point
src/shared_ptr.cpp:23
Method
Point
src/unique_ptr.cpp:32
Method
Point
src/vectors.cpp:32
Method
Pointer
src/spring2024/s24_my_ptr.cpp:18
Method
Pointer<T>
Add move constructor: useful when we need to EXTEND the lifetime of an object!
src/spring2024/s24_my_ptr.cpp:42
Method
SetX
src/vectors.cpp:42
Method
SetY
src/unique_ptr.cpp:37
Function
add3
src/templated_functions.cpp:44
Function
add_count
The add_count function allows for a thread to increment the count variable by 1, atomically.
src/mutex.cpp:25
Function
add_count
The add_count function allows for a thread to increment the count variable by 1, atomically.
src/scoped_lock.cpp:26
Function
add_count_and_notify
In this function, a thread increments the count variable by 1. It also will notify one waiting thread if the count value is 2. It is ran by two of the
src/condition_variable.cpp:44
Function
construct_obj
src/auto.cpp:44
Function
main
The main method constructs two thread objects and has them both run the add_count function in parallel. After these threads are finished executing, we
src/mutex.cpp:38
Function
main
The main method constructs six thread objects and has two of them run the write_value function, and four of them run the read_value function, all in p
src/rwlock.cpp:57
Function
main
The main method is identical to the one in mutex.cpp. It constructs the thread objects, runs add_count on both threads, and prints the result of count
src/scoped_lock.cpp:39
Function
main
src/move_semantics.cpp:62
Function
main
src/shared_ptr.cpp:50
Function
main
src/templated_classes.cpp:81
Function
main
src/unordered_maps.cpp:26
Function
main
src/namespaces.cpp:114
Function
main
The main method constructs three thread objects and has two of them run the add_count_and_notify function in parallel. After these threads are finishe
src/condition_variable.cpp:72
Function
main
src/references.cpp:19
Function
main
src/auto.cpp:48
Function
main
The main function shows the usage of the DLL iterator.
src/iterator.cpp:155
Function
main
src/move_constructors.cpp:106
Function
main
src/templated_functions.cpp:52
Function
main
src/wrapper_class.cpp:111
Function
main
src/unique_ptr.cpp:48
Function
main
src/sets.cpp:27
Function
main
src/vectors.cpp:63
Function
main
src/spring2024/s24_my_ptr.cpp:92
Method
operator!=
This is the inequality operator for the DLLIterator class. It tests that the current pointers are not the same.
src/iterator.cpp:87
Method
operator*
This is the dereference operator for the DLLIterator class. It returns the value of the element at the current position of the iterator. The current p
src/iterator.cpp:95
Method
operator++
Implementing a postfix increment operator (iter++). The difference between a prefix and postfix increment operator is the return value of the operator
src/iterator.cpp:73
Method
operator==
This is the equality operator for the DLLIterator class. It tests that the current pointers are the same.
src/iterator.cpp:81
Method
print
src/templated_classes.cpp:34
Method
print
src/templated_classes.cpp:52
Method
print
src/templated_classes.cpp:64
Method
print
src/auto.cpp:32
Function
print_msg
src/templated_functions.cpp:34
Function
print_msg<float>
src/templated_functions.cpp:37
Function
print_two_values
src/templated_functions.cpp:26
Function
read_value
This function uses a std::shared_lock (reader lock equivalent) to gain read only, shared access to the count variable, and reads the count variable.
src/rwlock.cpp:40
Function
smart_generator
src/spring2024/s24_my_ptr.cpp:76
Function
waiter_thread
This function, ran by the waiting thread, waits on the condition count == 2. After that, it grabs the mutex m and executes code in the critical sectio
src/condition_variable.cpp:60
Function
write_value
This function uses a std::unique_lock (write lock equivalent) to gain exclusive access to the count variable and write to the value.
src/rwlock.cpp:47
Method
~DLL
Destructor should delete all the nodes by iterating through them.
src/iterator.cpp:114
Method
~IntPtrManager
Destructor for the wrapper class. The destructor must destroy the resource that it is managing; in this case, the destructor deletes the pointer!
src/wrapper_class.cpp:58
next →
1–100 of 101, ranked by callers